package com.aiyan.edu.framework.domain.gateway;

import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author: zqzhou
 * @create: 2019/12/01 17:09
 **/
@Data
@ToString
@Entity
@Table(name = "gw_route")
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
public class GwRoute implements Serializable {

    private static final long serialVersionUID = 4882143001430878630L;

    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(length = 32)
    private String id;
    @Column(name = "route_id")
    private String routeId;
    private String uri;
    @Column(name = "route_order")
    private Integer routeOrder;
    private String predicates;
    private String filters;
    private Boolean enabled;
    private Boolean deleted;
    @Column(name = "create_at")
    private Date createAt;
    @Column(name = "update_at")
    private Date updateAt;
    @Column(name = "service_id")
    private String serviceId;
}
